package gorreteapps.amigoinvisible.lists;

public class FriendInfo{

	private String name;
	private String email;

	public FriendInfo(String name, String email) {
		this.name = name;
		this.email = email;
	}

	public String getName() {
		return name;
	}

	public String getEmail() {
		return email;
	}
	
	@Override
	public boolean equals(Object obj){
		if(obj == null) return false;
		if(this == obj) return true;
		if(!(obj instanceof FriendInfo)) return false;
		
		FriendInfo friendInfo = (FriendInfo) obj;
		return this.getName().equals(friendInfo.getName()) 
				&& this.getEmail().equals(friendInfo.getEmail()); 
	}
}
